﻿#include "bluetoothdev.h"

#include <QApplication>
#include <QFile>

int main(int argc, char *argv[])
{
    // qputenv("QT_AUTO_SCREEN_SCALE_FACTOR", "2");
    // QApplication::setAttribute(Qt::AA_EnableHighDpiScaling);
    // QGuiApplication::setHighDpiScaleFactorRoundingPolicy(Qt::HighDpiScaleFactorRoundingPolicy::PassThrough);
    QApplication a(argc, argv);

    QFile f(":/qss/flatwhite.css");
    if (!f.exists())
    {
        printf("Unable to set stylesheet, file not found\n");
    }
    else
    {
        f.open(QFile::ReadOnly | QFile::Text);
        QTextStream ts(&f);
        qApp->setStyleSheet(ts.readAll());
        f.close();
    }
    BluetoothDev w;
    w.show();
    return a.exec();
}
